<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>小分类一览</title>
<link href="css/jimu.css" type="text/css" rel="stylesheet"><!-- 基于网页地址条寻址 非目录寻址 -->
<script type="text/javascript">
function confirmDel(str){   
 return confirm(str);   
	}   
</script>
</head>
<body>
<!-- 头部包含文件 -->
<%@include file="../common/head.jsp" %>
<table class="main">
	<tr>
		<td style="width:180px;vertical-align:top;">
			<%@include file="../common/menu.jsp" %>	
		</td>
		<td style="vertical-align:top;padding:20px">
			<p>商品信息如下：</p>
				<table class="listTbl">
					<tr >
						<th>商品大类</th>
						<th>商品小类编号</th>
						<th>类型名称</th>
						<th>操作</th>

					</tr>
					<s:iterator value="subList">
					<tr>
					    <td style="text-align:center;"><s:property value="supertype.supertypeid"/></td>
						<td style="text-align:center;"><s:property value="subtypeid"/></td>
						<td style="text-align:center;"><s:property value="subtypename"/></td>
						<td>
						<a href="delSub.action?subid=<s:property value="subtypeid"/>" onclick="return confirmDel('确定要删除吗')">删除</a></td>
					</tr>
					</s:iterator>
				</table>
				<div style="padding:10px">
				<a href="toaddSub.action">追加小分类</a>
				</div>
		</td>
	</tr>

</table>
<%@include file="../common/tail.jsp" %>
</body>
</html>